<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<head>

<style>
BODY, P, DIV, H1, H2, H3, H4, H5, H6, ADDRESS, OL, UL, TITLE, TD, OPTION, SELECT {
 font-family: Verdana;
 
}

BODY, P, DIV, ADDRESS, OL, UL, LI, TITLE, TD, OPTION, SELECT {  
  font-size: 10.0pt;
  margin-top:0pt;  
  margin-bottom:0pt;  
} 

BODY, P {
  margin-left:0pt; 
  margin-right:0pt;
}
  
BODY {
  line-height: ;

  margin: 6px;
  padding: 0px;
}

h6 { font-size: 10pt }
h5 { font-size: 11pt }
h4 { font-size: 12pt }
h3 { font-size: 13pt }
h2 { font-size: 14pt }
h1 { font-size: 16pt }

blockquote {padding: 10px; border: 1px #DDDDDD dashed }

a img {border: 0}

</style>




</head>


<body revision="ddrcvgn3_0g7pxp4:221">

<a name=Mendoza_server_HTTP_commands></a><font size=5><span style=FONT-WEIGHT:700>Mendoza
server HTTP commands<br>
</span></font><br>
/mendoza/login<font size=2><br>
</font>/mendoza/checkout/encoded
<font size=2><br>
</font>/mendoza/checkout<br>
/mendoza/coupon<br>
/mendoza/gift<br>
/mendoza/cart<br>
/mendoza/signature<br>
/mendoza/placeorder<br>
/mendoza/reset<br>
/mendoza/merchant
<font size=2><br>
</font>/mendoza/status<br>
/mendoza/help<br>
<font size=2><span style="FONT-WEIGHT:700; COLOR:#3366ff"><br>
</span></font><hr style="WIDTH:100%; HEIGHT:2px"><font size=4><span style="FONT-WEIGHT:700; COLOR:#3366ff"><br>
</span></font><a name=/mendoza/login></a><span style=FONT-WEIGHT:700><font size=4 style=COLOR:#3366ff>/mendoza/login</font></span><br>
<br>
Sets the buyer email and password.<span style=FONT-WEIGHT:700><br>
</span><br>
Parameters:<br>
<span style=TEXT-DECORATION:underline>email</span>: The buyer's email. Required.<br>
<span style=TEXT-DECORATION:underline>password</span>: The buyer's password.
Required.<br>
<br>
Return:<br>
Returns the result of executing this command (success/error message).<br>
<br>
e.g.<br>
<span>http://localhost:20000/mendoza/login?email=buyer@email.com&amp;password=demo</span><br>
<br>
<hr style="WIDTH:100%; HEIGHT:2px"><br>
<a name=/mendoza/checkout/encoded></a><span style="FONT-WEIGHT:700; COLOR:#3366ff"><font size=4>/mendoza/checkout/encoded</font></span><br>
<br>
Posts a base64 encoded cart.<br>
<br>
Parameters:<br>
<span style=TEXT-DECORATION:underline>cart</span>: The base64 cart. Required.<br>
<span style=TEXT-DECORATION:underline>signature</span>: The base64 signature.
Required.<br>
<br>
Return:<br>
Returns the result of executing this command (success/error message).<br>
<br>
e.g.<br>
<span>http://localhost:20000/mendoza/checkout/encoded?<br>
cart=PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxjaGVja291dC1zaG9wcGlu<br>
&amp;signature=kdjsf590GFDGK23l2kgit259fjSDKET0592jalkfwe3539Gjekwu</span><br>
<br>
<hr style="WIDTH:100%; HEIGHT:2px"><br>
<a name=/mendoza/checkout></a><span style=FONT-WEIGHT:700><font size=4><span style=COLOR:#3366ff>/mendoza/checkout</span></font></span><span style=FONT-WEIGHT:700><font size=4><br>
<br>
</font></span><font size=2>Posts a plain XML
cart.</font><span style=FONT-WEIGHT:700><font size=4><br>
</font></span><br>
Parameters:<br>
<span style=TEXT-DECORATION:underline>cart</span>: The plain XML cart. Required.<br>
<br>
Return:<br>
Returns the result of executing this command (success/error message).<br>
<br>
e.g.<br>
<span>http://localhost:20000/mendoza/checkout?cart=&lt;checkout-shopping-cart&gt;...&lt;/checkout-shopping-cart&gt;<br>
<br>
</span>
<br>
<hr style="WIDTH:100%; HEIGHT:2px"><br>
<a name=/mendoza/coupon></a><span style="FONT-WEIGHT:700; COLOR:#3366ff"><font size=4>/mendoza/coupon</font></span><br>
<br>
Adds a coupon to the cart.<br>
<br>
Parameters:<br>
<span style=TEXT-DECORATION:underline>code</span>: The coupon code. Required.<br>
<br>
Return:<br>
Returns the result of executing this command (success/error message).<br>
<br>
e.g.<br>
<span>http://localhost:20000/mendoza/coupon?code=12345</span><br>
<br>
<br>
<hr style="WIDTH:100%; HEIGHT:2px"><br>
<a name=/mendoza/gift></a><span style="FONT-WEIGHT:700; COLOR:#3366ff"><font size=4>/mendoza/gift</font></span><br>
<br>
Adds a gift certificate to the cart.<br>
<br>
Parameters:<br>
<span style=TEXT-DECORATION:underline>code</span>: The gift certificate code. Required.<br>
<br>
Return:<br>
Returns the result of executing this command (success/error message).<br>
<br>
e.g.<br>
<span>http://localhost:20000/mendoza/gift?code=12345</span><br>
<br>
<hr style="WIDTH:100%; HEIGHT:2px"><br>
<a name=/mendoza/cart></a><font size=4><span style="FONT-WEIGHT:700; COLOR:#3366ff">/mendoza/cart</span></font><br>
<br>
Validates the cart XML with the Google Checkout schema.<br>
To use this command a
<a href=View?docid=ddrcvgn3_0g7pxp4#/mendoza/checkout/encoded title=/mendoza/checkout/encoded>/mendoza/checkout/encoded</a>
or
<a href=View?docid=ddrcvgn3_0g7pxp4#/mendoza/checkout/encoded title=/mendoza/checkout/encoded>/mendoza/checkout</a>
command must have been issued.<br>
<br>
Parameters:<br>
None.<br>
<br>
Return:<br>
Returns the result of executing this command (success/error message).<br>
<br>
e.g.<br>
<span>http://localhost:20000/mendoza/cart</span><br>
<span></span><br>
<hr style="WIDTH:100%; HEIGHT:2px"><br>
<a name=/mendoza/signature></a><font size=4><span style="FONT-WEIGHT:700; COLOR:#3366ff">/mendoza/signature</span></font><br>
<br>
Asserts the signature of the cart.<br>
To use this command a
<a href=View?docid=ddrcvgn3_0g7pxp4#/mendoza/checkout/encoded title=/mendoza/checkout/encoded>/mendoza/checkout/encoded</a>
command must have been issued.<br>
<br>
Parameters:<br>
None.<br>
<br>
Return:<br>
Returns the result of executing this command (success/error message).<br>
<br>
e.g.<br>
<span>http://localhost:20000/mendoza/signature</span><br>
<br>
<hr style="WIDTH:100%; HEIGHT:2px"><br>
<a name=/mendoza/placeorder></a><font size=4><span style="FONT-WEIGHT:700; COLOR:#3366ff">/mendoza/placeorder</span></font><br>
<br>
Places the order.<br>
A
<a href=View?docid=ddrcvgn3_0g7pxp4#/mendoza/login title=/mendoza/login>/mendoza/login</a>
and a
<a href=View?docid=ddrcvgn3_0g7pxp4#/mendoza/checkout title=/mendoza/checkout>/mendoza/checkout</a>
or
<a href=View?docid=ddrcvgn3_0g7pxp4#/mendoza/checkout/encoded title=/mendoza/checkout/encoded>/mendoza/checkout/encoded</a>
command are required before issuing this command.<br>
<br>
Parameters:<br>
None.<br>
<br>
Return:<br>
Returns the result of executing this command (success/error message).<br>
<br>
e.g.<br>
<span>http://localhost:20000/mendoza/placeorder<br>
<br>
</span><hr style="WIDTH:100%; HEIGHT:2px"><br>
<a name=/mendoza/reset></a><font size=4><span style="FONT-WEIGHT:700; COLOR:#3366ff">/mendoza/reset</span></font><br>
<br>
Brings the status of the server to its initial state.<br>
<br>
Parameters:<br>
None.<br>
<br>
Return:<br>
Returns the result of executing this command (success/error message).<br>
<br>
e.g.<br>
<span>http://localhost:20000/mendoza/reset</span><br>
<br>
<hr style="WIDTH:100%; HEIGHT:2px"><br>
<a name=/mendoza/merchant></a><font size=4><span style="FONT-WEIGHT:700; COLOR:#3366ff">/mendoza/merchant</span></font><br>
<br>
Changes the current merchant id and key.<br style=BACKGROUND-COLOR:#ff6666>
<br style=BACKGROUND-COLOR:#ffffff>
<span style=BACKGROUND-COLOR:#ffffff>Parameters:<br>
<span style=TEXT-DECORATION:underline>id:</span> The merchant id.
</span>Required.<br>
<span style=BACKGROUND-COLOR:#ffffff>
<span style=TEXT-DECORATION:underline>key:</span> The merchant
key.</span>Required.<br style=BACKGROUND-COLOR:#ff6666>
<br>
Return:<br>
Returns the result of executing this command (success/error message).<br>
<br style=BACKGROUND-COLOR:#ff6666>
<span style=BACKGROUND-COLOR:#ffffff>e.g.</span><br style=BACKGROUND-COLOR:#ff6666>
<span>http://localhost:20000/mendoza/merchant?id=1234567890&amp;key=</span>HsYXFoZfHAqyLcCRYeH8qQ<br>
<br>
<hr style="WIDTH:100%; HEIGHT:2px"><a name=/mendoza/status></a><br>
<font size=4><span style="FONT-WEIGHT:700; COLOR:#3366ff">/mendoza/status</span></font><br>
<br>
Gets the status of the server.<br style=BACKGROUND-COLOR:#ff6666>
<br style=BACKGROUND-COLOR:#ffffff>
<span style=BACKGROUND-COLOR:#ffffff>Parameters:<br>
<span style=TEXT-DECORATION:underline>get:</span> The particular status
description to display. Not required, if not used it gets the full status
description.<br>
<br>
<span style=TEXT-DECORATION:underline></span></span>Options:<br>
&nbsp;&nbsp;&nbsp; cmd: The mendoza server command log.<br>
&nbsp;&nbsp;&nbsp; gon: The Google order number.<br>
&nbsp;&nbsp;&nbsp; non: The new order notification message.<br>
&nbsp;&nbsp;&nbsp; risk: Risk notification message.<br>
&nbsp;&nbsp;&nbsp; ful: The order fulfillment states changes.<br>
&nbsp;&nbsp;&nbsp; fin: The order financial states changes.<br>
&nbsp;&nbsp;&nbsp; mc: The merchant calculations messages.<br>
<br>
Return:<br>
Returns a plain text description of the server status.<br>
<br style=BACKGROUND-COLOR:#ff6666>
<span style=BACKGROUND-COLOR:#ffffff>e.g.</span><br style=BACKGROUND-COLOR:#ff6666>
<span>http://localhost:20000/mendoza/status<br>
</span><span><br>
</span> <span>http://localhost:20000/mendoza/status?get=risk<br>
<br>
</span><hr style="WIDTH:100%; HEIGHT:2px"><br>
<a name=/mendoza/help></a><font size=4><span style="FONT-WEIGHT:700; COLOR:#3366ff">/mendoza/help<br>
<br>
</span></font>Gets the server command description.<br>
<br>
Return:<br>
Returns the server command description as html.<br>
<br>
<span style=BACKGROUND-COLOR:#ffffff>e.g.</span><br style=BACKGROUND-COLOR:#ff6666>
<span>http://localhost:20000/mendoza/help<br>
</span><br>
<br></body>
</html>